<!DOCTYPE html>
<html>
<head>
    <title>工装精度检测判定标准</title>
    #parse("sys/header.html")
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <Row :gutter="16" style="margin: 8px 0px 0px 1px">
            <div class="search-group">
                <i-col span="4">
                    <i-input v-model="q.judgeStandard" @on-enter="query" placeholder="名称"/>
                </i-col>
                <i-button @click="query">查询</i-button>
                <i-button @click="reloadSearch">重置</i-button>
            </div>
        </Row>
        <Row :gutter="16" style="margin: 3px 0px 0px 0px;">
            <div class="buttons-group">
                <i-button type="info" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</i-button>
                <i-button type="warning" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</i-button>
                <i-button type="error" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</i-button>
            </div>
        </Row>
        <table id="jqGrid"></table>
    </div>
    <Card v-show="!showList">
        <p slot="title">{{title}}</p>
        <i-form ref="formValidate" :model="toolsCheckJudgeStandard" :rules="ruleValidate" :label-width="80">
            <Row>
                <i-col span="11">
                    <Form-item label="检测周期" prop="checkPeriod">
                        <i-select v-model="toolsCheckJudgeStandard.checkPeriod">
                            <i-option value="1">1次/月</i-option>
                            <i-option value="3">1次/季度</i-option>
                            <i-option value="6">1次/半年</i-option>
                            <i-option value="12">1次/年</i-option>
                        </i-select>
                    </Form-item>
                </i-col>
                <i-col span="11">
                    <Form-item label="测量工具" prop="checkTool">
                        <i-select v-model="toolsCheckJudgeStandard.checkTool">
                            <i-option value="游标卡尺">游标卡尺</i-option>
                        </i-select>
                    </Form-item>
                </i-col>
            </Row>
            <Row>
                <i-col span="11">
                    <Form-item label="判定标准" prop="judgeStandard">
                        <i-input v-model="toolsCheckJudgeStandard.judgeStandard" placeholder="请输入判定标准"/>
                    </Form-item>
                </i-col>
                <i-col span="11">
                    <Form-item label="测量点位" prop="position">
                        <i-input v-model="toolsCheckJudgeStandard.position" placeholder="请输入测量点位标识"/>
                    </Form-item>
                </i-col>
            </Row>
            <Row>
                <i-col span="11">
                    <Form-item label="区间最小值" prop="startInterval">
                        <i-input v-model="toolsCheckJudgeStandard.startInterval" placeholder="请输入判定区间最小值"/>
                    </Form-item>
                </i-col>
                <i-col span="11">
                    <Form-item label="区间最大值" prop="endInterval">
                        <i-input v-model="toolsCheckJudgeStandard.endInterval" placeholder="请输入判定区间最小值"/>
                    </Form-item>
                </i-col>
            </Row>
            <Row>
                <i-col span="22">
                    <Form-item label="备注" prop="remark">
                        <i-input type="textarea" v-model="toolsCheckJudgeStandard.remark" placeholder="备注"/>
                    </Form-item>
                </i-col>
            </Row>
            <Form-item>
                <i-button type="primary" @click="handleSubmit('formValidate')">提交</i-button>
                <i-button type="warning" @click="reload" style="margin-left: 8px"/> 返回</i-button>
                <i-button type="info" @click="handleReset('formValidate')" style="margin-left: 8px">重置</i-button>
            </Form-item>
        </i-form>
    </Card>
</div>
<script src="${rc.contextPath}/js/tools/toolscheckjudgestandard.js?_${date.systemTime}"></script>
</body>
</html>
